package cemp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * @TableName stock_ths_gn
 */
@TableName(value ="stock_ths_gn")
public class StockThsGn implements Serializable {
    private Integer id;

    private String gnCode;

    private String gnName;

    private String gnUrl;

    private String createTime;

    private String gnType;

    private String gnDesc;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGnCode() {
        return gnCode;
    }

    public void setGnCode(String gnCode) {
        this.gnCode = gnCode;
    }

    public String getGnName() {
        return gnName;
    }

    public void setGnName(String gnName) {
        this.gnName = gnName;
    }

    public String getGnUrl() {
        return gnUrl;
    }

    public void setGnUrl(String gnUrl) {
        this.gnUrl = gnUrl;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getGnType() {
        return gnType;
    }

    public void setGnType(String gnType) {
        this.gnType = gnType;
    }

    public String getGnDesc() {
        return gnDesc;
    }

    public void setGnDesc(String gnDesc) {
        this.gnDesc = gnDesc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        StockThsGn other = (StockThsGn) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getGnCode() == null ? other.getGnCode() == null : this.getGnCode().equals(other.getGnCode()))
            && (this.getGnName() == null ? other.getGnName() == null : this.getGnName().equals(other.getGnName()))
            && (this.getGnUrl() == null ? other.getGnUrl() == null : this.getGnUrl().equals(other.getGnUrl()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getGnType() == null ? other.getGnType() == null : this.getGnType().equals(other.getGnType()))
            && (this.getGnDesc() == null ? other.getGnDesc() == null : this.getGnDesc().equals(other.getGnDesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getGnCode() == null) ? 0 : getGnCode().hashCode());
        result = prime * result + ((getGnName() == null) ? 0 : getGnName().hashCode());
        result = prime * result + ((getGnUrl() == null) ? 0 : getGnUrl().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getGnType() == null) ? 0 : getGnType().hashCode());
        result = prime * result + ((getGnDesc() == null) ? 0 : getGnDesc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", gnCode=").append(gnCode);
        sb.append(", gnName=").append(gnName);
        sb.append(", gnUrl=").append(gnUrl);
        sb.append(", createTime=").append(createTime);
        sb.append(", gnType=").append(gnType);
        sb.append(", gnDesc=").append(gnDesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}